home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-25 | 1.1 KB | 32 lines | [TEXT/GEOL] |
- Item forwarded by PERRY.G to PIRO
-
- Item 7541710 22-June-90 00:08PDT
-
- From: MUYSVASOVIC ACE - Jean-Denis Muys-Vasovic
-
- To: VANPATTEN Van Patten, Don
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: CatchFailures and Methods
-
- Don,
-
- Your mistake is to believe that the "function" and "member function" types are
- the same. They are not. Even at the implementation level, this would not work
- because of the "this" hidden parameter. The suggestion given by the compiler
- includes the change of the handler declaration, which you don't control.
-
- The only way to go therefore, is to have your handler be a global function, not
- a member function (it could be a friend though). You can pass the address of
- your object in the static link parameter.
-
- You might also look at the release notes for C++/MacApp, they describe a set of
- macros for using the failure mechanism with C++, the problem being that C(++)
- doesn't allow for nested functions.
-
- I supposed this doesn't help much. Oh Well…
-
- Jean-Denis
-
-